﻿using System;
using System.Web.UI;

namespace Orbitone.MeetingRooms.RoomFinder
{
    public partial class CalendarDetail : Page
    {
        public string EventId { get; set; }
        public string EventMailbox { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var prevPage = (Calendar) Page.PreviousPage;
                EventId = prevPage.EventId;
                EventMailbox = prevPage.EventMaibox;
                updateCalendarItem.EventId = EventId;
                updateCalendarItem.EventMailbox = EventMailbox;
            }
        }
    }
}